package com.system.service;

import com.system.pojo.Employee;

import java.util.List;
import java.util.Map;

/**
 * Created by 陈文杰 on 2022/6/6 14:58
 */
public interface EmployeeService {
    //查询所有员工信息
    List<Employee> queryEmployeeAll();

    //根据主键id查询员工信息
    Employee queryEmployeeByEmpId(int empId);

    //根据员工名查询员工信息
    Employee queryEmployeeByEmpName(String empName);

    //根据部门号查询员工信息
    List<Employee> queryEmployeeByEmpDeptId(int empDeptId);

    //根据部门名查询员工信息
    List<Employee> queryEmployeeByEmpDeptName(String empDeptName);

    //根据岗位查询员工信息
    List<Employee> queryEmployeeByEmpPost(String empPost);

    //添加员工信息
    int addEmployeeAll(Employee employee);

    //根据主键id修改员工信息
    int updateEmployeeByEmpId(Map<String,Object> map);

    //根据员工名修改员工信息
    int updateEmployeeByEmpName(Map<String,Object>map);



    //根据主键id删除员工信息
    int deleteEmployeeByEmpId(int empId);

    //根据员工名删除员工信息
    int deleteEmployeeByEmpName(String empName);

    //根据部门号删除员工信息
    int deleteEmployeeByEmpDeptId(int empDeptId);

    //根据部门名删除员工信息
    int deleteEmployeeByEmpDeptName(String empDeptName);

    //根据岗位查删除员工信息
    int deleteEmployeeByEmpPost(String empPost);






}
